package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum DriverRewardCategory {
    other(0, "其他"),
    onlineOrder(1, "接单奖励"),
    redPacket(2, "红包"),
    recommend(3, "推广奖励"),
    recommendation_first_order_reward(4, "推广并完成首单");

    @EnumValue
    private final int code;
    private final String desc;

    DriverRewardCategory(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
